package cloud.code.baseProject.entity;

import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 实体基类
 *
 * @author zhc
 */
public class BaseEntity {

    /**
     * 排序字符串
     * <p>在数据库的XML文件中，通过${}直接写入原文</p>
     * <p style="color:red">这里要格外小心，必须所有字段进行逐一检查。防止SQL注入。</p>
     */
    @TableField(exist = false)
    private String sqlOrderKey = null;
    /**
     * 排序顺序
     */
    @TableField(exist = false)
    private String sqlOrderValue = null;

    /**
     * 页码
     */
    @TableField(exist = false)
    private Integer pageNumber = null;

    /**
     * 每页数量
     */
    @TableField(exist = false)
    private Integer pageSize = null;

    /**
     * 数据总量
     */
    @TableField(exist = false)
    private Integer sqlPageTotal = null;

    public String getSqlOrderKey() {
        return sqlOrderKey;
    }

    public void setSqlOrderKey(String sqlOrderKey) {
        this.sqlOrderKey = sqlOrderKey;
    }

    public String getSqlOrderValue() {
        return sqlOrderValue;
    }

    public void setSqlOrderValue(String sqlOrderValue) {
        this.sqlOrderValue = sqlOrderValue;
    }

    public Integer getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getSqlPageTotal() {
        return sqlPageTotal;
    }

    public void setSqlPageTotal(Integer sqlPageTotal) {
        this.sqlPageTotal = sqlPageTotal;
    }
}
